import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

/**
 * @author ml
 * @create 2018-03-02--14:56
 */
public class Provider {

    public static void main(String[] args) throws IOException {
        ClassPathXmlApplicationContext context=new ClassPathXmlApplicationContext("dubbo-provider.xml");

        System.out.println(context.getDisplayName());
        context.start();
        System.out.println("服务已经启动。。。");
        System.in.read();
    }
}
